package com.topica.object;

import java.io.Serializable;

public class QuizItem implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private int quiz_id;
	private String quest_ids;
	private int number_question;
	private int time;
	private String name;
	private String time_open;
	private String time_close;

	public QuizItem(int id,int quiz_id, String quest_ids, int number_question,
			int time, String name, String time_open, String time_close) {
		super();
		this.id = id;
		this.quiz_id = quiz_id;
		this.quest_ids = quest_ids;
		this.number_question = number_question;
		this.time = time;
		this.name = name;
		this.time_open = time_open;
		this.time_close = time_close;
	}

	public int getQuizId() {
		return quiz_id;
	}

	public String[] getQuestIds() {
		String[] questIds = quest_ids.split(",");
		return questIds;
	}
	public String getRawQuestionIds(){
		return quest_ids;
	}
	public int getNumberQuestion() {
		return number_question;
	}

	public int getTime() {
		return time;
	}

	public String getName() {
		return name;
	}
	
	public String getTimeOpen() {
		return time_open;
	}
	
	public String getTimeClose() {
		return time_close;
	}
	
	public int getId() {
		return id;
	}
}
